// 配置service的入口文件
import Vue from 'vue'
import VueResource from 'vue-resource'

import  home from './home'
import  category from './category'
import  product from './product'
import wxLogin from './wx-login'

Vue.use(VueResource)

// 路由http参数设置
Vue.http.options.emulateJSON = true
Vue.http.options.root = URL.Purl
Vue.http.options.xhr = {
  withCredentials: true
}
Vue.http.options.crossOrigin = true

export default {
  home,
  category,
  product,
  wxLogin
}
